package sg.edu.nus.iss.billing.gui.subscription;

import java.awt.GridLayout;

import javax.swing.JPanel;

import sg.edu.nus.iss.billing.entity.Customer;
import sg.edu.nus.iss.billing.gui.ViewCustomerAddressPanel;
import sg.edu.nus.iss.billing.gui.ViewCustomerContactPanel;
import sg.edu.nus.iss.billing.gui.ViewCustomerFieldPanel;
import sg.edu.nus.iss.billing.gui.ViewCustomerMiscPanel;

public class CustomerInfoPanel extends JPanel {

	private static final long serialVersionUID = 1742811258747024552L;

	public CustomerInfoPanel(Customer cust) {

		this.setLayout(new GridLayout(0, 2));

		JPanel custPanel = new ViewCustomerFieldPanel(cust);
		JPanel custAdd = new ViewCustomerAddressPanel(cust);
		JPanel custContact = new ViewCustomerContactPanel(cust);
		JPanel custMisc = new ViewCustomerMiscPanel(cust);

		this.add(custPanel);
		this.add(custAdd);
		this.add(custContact);
		this.add(custMisc);

	}

}
